package com.mjw.tender.service;

import com.mjw.tender.api.TbRoleService;
import com.mjw.tender.domain.TbRole;
import com.mjw.tender.mapper.TbRoleMapper;
import org.apache.dubbo.config.annotation.Service;

import javax.annotation.Resource;
import java.util.List;

@Service(version = "1.0.0")
public class TbRoleServiceImpl implements TbRoleService {

    @Resource
    TbRoleMapper tbRoleMapper;

    @Override
    public List<TbRole> getRolesByUserId(Long userId) {
        return tbRoleMapper.getRolesByUserId(userId);
    }
}
